#include "junix.h"
#include "allocator.h"
#include <boost/bind.hpp>

using namespace std;

int main(int argc, char **argv)
{
	const size_t sz = 10000000;
	vector<int, jallocator::allocator<int> > iv(sz);
	using boost::bind;
	generate(iv.begin(),iv.end(),
			bind(modulus<int>(), bind(rand),sz));
	copy(iv.begin(), iv.end(),
			ostream_iterator<int>(cout, " "));
	cout<<endl;


}
